package com.spark.utils

object StringUtils {
  def isNotEmpty(str:String):Boolean={
    if(str == null || str.equals("")){
      false
    }else{
      true
    }
  }

  def isEmpty(str:String):Boolean={
    if(str == null || str.equals("")){
      true
    }else{
      false
    }
  }

  def fullFillStr(str:String):String ={
    if(str.length < 2){
      "0"+str
    }else{
      str
    }
  }
}
